package la.iok.hzsvn.lewin.movie.cloud.model;

import java.util.Objects;

/**
 * 网页端管理界面修改用户信息
 */
public class UserModifyParam {
    /**
     * 手机号
     */
    private String phoneNumber;
    /**
     * 用户所属组织
     */
    private Long orgUnitId;

    private int gender;

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public Long getOrgUnitId() {
        return orgUnitId;
    }

    public void setOrgUnitId(Long orgUnitId) {
        this.orgUnitId = orgUnitId;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserModifyParam param = (UserModifyParam) o;
        return Objects.equals(phoneNumber, param.phoneNumber) && Objects.equals(orgUnitId, param.orgUnitId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(phoneNumber, orgUnitId);
    }


}
